package com.iwords.android;

import java.util.ArrayList;
import java.util.List;

/**例句对象，用来表示一个单词或词组的例句信息*/
public class WordIllustration {
	/**原始词汇的信息*/
	private Word word;
	/**查询返回的拼写*/
	private String spelling;
	/**真人发音URL*/
	private String audioURL;
	/**实时查询结果给出的释义*/
	private String meaning;
	/**实时查询结果给出的音标*/
	private String phonetics;
	/**实时查询出的例句*/
	private List<Sentence> sentences = new ArrayList<Sentence>();
	
	static class Sentence {
		final String en;
		final String cn;
		Sentence(String en, String cn){
			this.en = en;
			this.cn = cn;
		}
	}

	public String getSpelling() {
		return spelling;
	}

	public void setSpelling(String spelling) {
		this.spelling = spelling;
	}

	public String getAudioURL() {
		return audioURL;
	}

	public void setAudioURL(String audioURL) {
		this.audioURL = audioURL;
	}

	public Word getWord() {
		return word;
	}

	public void setWord(Word word) {
		this.word = word;
	}

	public String getMeaning() {
		return meaning;
	}

	public void setMeaning(String meaning) {
		this.meaning = meaning;
	}

	public String getPhonetics() {
		return phonetics;
	}

	public void setPhonetics(String phonetics) {
		this.phonetics = phonetics;
	}

	public List<Sentence> getSentences() {
		return sentences;
	}

	public void setSentences(List<Sentence> sentences) {
		this.sentences = sentences;
	}
	
	public String toString(){
		return "spelling="+spelling+";phonetics="+phonetics+";meaning="+meaning+";sentences.size()="+sentences.size();
	}
}
